/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.activity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.List;
import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 乐购幸运秒杀Entity
 * @author 罗天文
 * @version 2018-05-15
 */
public class HkShopSeckill extends DataEntity<HkShopSeckill> {
	
	private static final long serialVersionUID = 1L;
	private String title;		// 标题
	private String beginTime;		// 开始时间
	private String endTime;		// 结束时间
	private String state;		// 状态
	private List<HkShopSeckillProduct> hkShopSeckillProductList = Lists.newArrayList();		// 子表列表
	
	public HkShopSeckill() {
		super();
	}

	public HkShopSeckill(String id){
		super(id);
	}

	@Length(min=0, max=100, message="标题长度必须介于 0 和 100 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}
	
	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	public List<HkShopSeckillProduct> getHkShopSeckillProductList() {
		return hkShopSeckillProductList;
	}

	public void setHkShopSeckillProductList(List<HkShopSeckillProduct> hkShopSeckillProductList) {
		this.hkShopSeckillProductList = hkShopSeckillProductList;
	}
}